<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="hidden" id="order" th:value="${order}">

<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
<script>
    window.onload = function myfun() {
        var order = $('#order').val();
        var domain = document.domain;
        window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=http%3A%2F%2F" + domain + "%2Fwxpay%2FtoPlayerInfo?order=" + order + "&appid=wxdf07cca1bcd28740&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
    }
</script>
</body>
</html>